import axios from '@/libs/api.request'
const prefix = '/oms/merchant/payment/account'
// 账户列表
export const getAccountLists = data => axios.request({
  url: `${prefix}/query/page`,
  method: 'post',
  data
})
// 子账户
export const getAccountChildren = data => axios.request({
  url: `${prefix}/query/list`,
  method: 'post',
  data
})
// 账户详情
export const getAccountDetail = data => axios.request({
  url: `${prefix}/get`,
  method: 'post',
  data
})
// 账户新增
export const addAccount = data => axios.request({
  url: `${prefix}/save`,
  method: 'post',
  data
})
// 账户删除
export const deleteAccount = data => axios.request({
  url: `${prefix}/delete`,
  method: 'post',
  data
})
// 账户更新
export const updateAccount = data => axios.request({
  url: `${prefix}/update`,
  method: 'post',
  data
})
// 验证能否编辑
export const updateAccountVerify = data => axios.request({
  url: `${prefix}/update/verify`,
  method: 'post',
  data
})
// 支付验证
export const paymentVerify = data => axios.request({
  url: `${prefix}/check`,
  method: 'post',
  data
})
